package com.xm.zcf.service.adminUser.impl;

import com.xm.zcf.dao.adminUser.AdminUserDao;
import com.xm.zcf.domain.adminuser.Adminuser;
import com.xm.zcf.domain.user.User;
import com.xm.zcf.service.adminUser.AdminUserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/3/10.
 */
@Service
@Transactional
public class AdminUserServiceImpl implements AdminUserService{
    @Resource
    private AdminUserDao adminUserDao;
    @Override
    public List<User> findAllUser() {
        return adminUserDao.findAllUser();
    }

    @Override
    public Adminuser findById(Integer uid) {
        return adminUserDao.findById(uid);
    }

    @Override
    public void deleteUser(Adminuser adminuser) {
        adminUserDao.deleteUser(adminuser);
    }
}
